﻿Imports DAO
Imports DTO
Imports System.Data.Linq

Public Class ChiTietMuonTraBus
    Public Shared Function LayBang() As Table(Of ChiTietMuonTra)
        Return ChiTietMuonTraDao.LayBang()
    End Function

    Public Shared Function LayDanhSach() As IEnumerable(Of ChiTietMuonTra)
        Dim lst As IEnumerable(Of ChiTietMuonTra)
        lst = ChiTietMuonTraDao.LayDanhSach()
        Return lst
    End Function

    Public Shared Function LayChiTiet(ByVal mpm As Integer) As ChiTietMuonTra
        Return ChiTietMuonTraDao.LayChiTiet(mpm)
    End Function

    Public Shared Sub Them(ByVal t As ChiTietMuonTra)
        ChiTietMuonTraDao.Them(t)
    End Sub

    Public Shared Sub Capnhat(ByVal ct As ChiTietMuonTra)
        ChiTietMuonTraDao.Capnhat(ct)
    End Sub
End Class
